package cn.usian.controller;

import cn.usian.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @RequestMapping("hello")
    public String hello() {
        return "hello.springBoot";
    }

    @Autowired
    private User user;

    @RequestMapping("/user")
    public String user(){
        return user.toString();
    }
}
